package pl.soulmusic.service;

import org.apache.axis2.AxisFault;

import pl.soulmusic.service.SynchronizeDataServiceStub.AddTrack;

public class SampleUsage {
public static void uploadData(){
    
 try {
    SynchronizeDataServiceStub stub = new SynchronizeDataServiceStub("http://localhost:8080/DataSyncService/services/SynchronizeData");
    AddTrack addTrack2 = new AddTrack();
    addTrack2.setAlbumName("Album");
    addTrack2.setAlbumYear("1999");
    addTrack2.setArtistCountry("USA");
    addTrack2.setArtistName("Kylie");
    addTrack2.setGenreName("house");
    addTrack2.setLatitude(52.123554);
    addTrack2.setLongitude(16.1232341);
    addTrack2.setPasswordHash("123451231243");
    addTrack2.setTrackTitle("Kilie");
    addTrack2.setTrackYouUrl("http://www.youtube.com/watch?v=VrZ4sMRYimw");
    addTrack2.setLogin("user");
    stub.addTrack(addTrack2);
} catch (Exception e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
}
 
}
}
